<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>样式的继承</title>
    <style>
      /* d3 可以继承到的d1的样式属性(一些可继承的样式可以来继承) */
        .d1 {
          height: 600px;
          padding: 50px;
          background-color: gray;
          font-size: 40px;
          color: red;
          font-family: "青鸟华光彩云";
        }
        .d2 {
          height: 400px;
          padding: 50px;
          background-color: orange;
        }
        .d3 {
          height: 200px;
          background-color: yellowgreen;
        }
    </style>
</head>
<body>
    <div class="d1">
      <div class="d2">
          <div class="d3">你好啊</div>
      </div>
    </div>
</body>
</html>